/*
 * zuperSlider v1.6.1 - http://hotwp.net/
 *
 * Copyright - 2012 Mihai Buricea (http://hotwp.net/)
 * All rights reserved.
 *
 * You may not modify and/or redistribute this file
 * save cases where Extended License has been purchased
 *
*/

(function(a){var b=function(b,c){var d=this,e;d.ver="v1.6.1";if(a.browser.msie){if(parseInt(a.browser.version)<=8){d.ie78=true}else if(parseInt(a.browser.version)==9){d.ie9=true;d.ie9ResponsiveProblem=true}}d.obj=b;d.settings=c;d.active=false;d.delayStop=false;d.ul=d.obj.find(">ul");d.ul_nr=d.ul.children().length;if(d.ul_nr<2){d.ul.css({visibility:"visible"});return}d.settings.animate.perPage=1;d.callbackFunction=null;d.callbackFunctionItemsStart=[];d.callbackFunctionItemsEnd=[];d.callbackCaption=null;d.obj.addClass("zuperSliderLoader");d.obj.wrapInner('<div class="container" />');d.widthContainer=d.ul.width();d.heightContainer=d.ul.height();d.sliderWidth=d.obj.width();d.sliderHeight=d.obj.height();if(d.settings.animate.type!="carousel"){e=d.obj.parent();var f=e.attr("style");e.removeAttr("style");if(d.settings.mode=="none"){d.originalWidth=parseInt(e.css("max-width"));if(!d.originalWidth){d.originalWidth=parseInt(e.css("width"))}d.originalHeight=parseInt(e.css("height"))}else if(d.settings.mode=="fullscreen"){d.originalWidth=1920;d.originalHeight=1200}else if(d.settings.mode=="fullwidth"){d.originalWidth=1920;d.originalHeight=parseInt(e.css("height"))}e.attr("style",f);d.propH=d.sliderWidth/d.originalWidth;d.propV=d.sliderHeight/d.originalHeight}else{d.propH=1;d.propV=1}d.touchDevice=!!("ontouchstart"in window)?1:0;d.htmlCssEvents();d.loading()};b.prototype={htmlCssEvents:function(){var b=this,d,e,f,g;if(b.settings.order.firstSlide=="middle"){g=Math.floor(b.ul_nr/2)}else{g=b.settings.order.firstSlide<1?0:parseInt(b.settings.order.firstSlide)-1}b.children=[];b.ul.children().each(function(){b.children.push(a(this))});if(b.settings.animate.type=="carousel"){var h,i,j,k,l=0,m,n,o,p,q,r=Math.floor(b.settings.animate.car_nr/2);for(d=10,h=0;d>=9-r;d--){h+=d}b.obj.css({width:b.sliderWidth*h/10});b.ul.parent().css({width:b.sliderWidth*h/10});b.ul.css({width:b.sliderWidth*h/10});i=b.settings.animate.car_nr-b.ul_nr;for(d=0;d<i;d++){if(d%2==0){k=b.children[b.ul_nr-1].clone();b.ul.append(k);b.children.push(k)}else{k=b.children[0].clone();b.ul.prepend(k);b.children.unshift(k)}b.ul_nr++}f=b.children.slice();for(d=0,h=r;d<b.ul_nr;d++,g++,h++){if(g>=b.ul_nr){g=0}if(h>=b.ul_nr){h=0}b.children[h]=f[g]}if(b.ul_nr-b.settings.animate.car_nr<r){for(d=0;d<b.ul_nr;d++){e=b.children[d].clone();b.ul.append(e);b.children.push(e)}b.ul_nr*=2}b.children[r].addClass("active3");b.index=r;q=9-r;m=[5,6,7,7.5,7.7,7.8,7.9,7.92,7.94,7.96,7.98],n=r,p=0;for(d=0;d<b.ul_nr;d++){j=b.children[d];j.hide();if(d<b.settings.animate.car_nr){if(d<=r){l+=b.sliderWidth*q/20;q++;n--;p=q/10}else if(d>r){l+=b.sliderWidth*(q+1)/20;q--;n++;p=q/10}if(typeof m[n]==="undefined")m[n]=0;j.css({width:b.sliderWidth*q/10,height:b.sliderHeight*q/10,zIndex:q,left:l,marginTop:(b.sliderHeight-b.sliderHeight*q/10)*(m[n]/10)});j.find("img").css({width:b.sliderWidth*q/10,height:b.sliderHeight*q/10,opacity:p})}else{q=9-r;j.css({width:b.sliderWidth*q/10,height:b.sliderHeight*q/10,zIndex:q,left:0,marginTop:(b.sliderHeight-b.sliderHeight*q/10)*(m[n]/10),opacity:0});j.find("img").css({width:b.sliderWidth*q/10,height:b.sliderHeight*q/10,opacity:q/10})}}b.ul.children().bind("click",function(e){var f=a(this);for(d=0;d<b.children.length;d++){if(f[0]==b.children[d][0]){break}}if(!b.children[d].hasClass("active3")){c.jumpToItem(d,b);return false}})}else{f=b.children.slice();for(d=0;d<b.ul_nr;d++,g++){if(g>=b.ul_nr)g=0;b.children[d]=f[g]}if(b.settings.order.startSlide=="middle"){b.index=Math.floor(b.ul_nr/2)}else{b.index=b.settings.order.startSlide<1?0:parseInt(b.settings.order.startSlide)-1}if(b.settings.multipleEff.active){b.multipleEffects(b.index)}}if(b.propertyIsActive("touchNavigation")){b.ul.addClass("grab");if(b.touchDevice){b.mousedown="touchstart.hs";b.mousemove="touchmove.hs";b.mouseup="touchend.hs"}else{b.mousedown="mousedown.hs";b.mousemove="mousemove.hs";b.mouseup="mouseup.hs"}b.ul.bind(b.mousedown,function(c){b.clickState=true;if(a(c.target).hasClass("nonDrag")){c.stopImmediatePropagation();c.stopPropagation();return true}if(!b.touchDevice){if(c.preventDefault){c.preventDefault()}}var d=c;if(b.touchDevice){var e=c.originalEvent.touches;if(e.length>1){return false}c=e[0]}b.touchStart=0;b.touchPos=0;if(b.ie78){if(b.active)return false;b.active=true;var f={};f.pageX=c.pageX;a(document).bind(b.mousemove,function(a){if(a.preventDefault){a.preventDefault()}f.pageX1=a.pageX;b.touchMouseMove(f)});a(document).bind(b.mouseup,b,b.touchMouseUp)}else{a(document).bind(b.mousemove,{pageX:c.pageX,pageY:c.pageY,me:b,ee:d},b.preTouchMouseMove);a(document).bind(b.mouseup,b,b.touchMouseUp)}return true}).bind("click",function(a){return b.clickState})}if(b.propertyIsActive("nav")){var s="nav",t,u;if(b.settings.nav.type=="numbers"){s="nav_num"}else if(b.settings.nav.type=="images"){s="nav_img"}t='<div class="zuperNav"><ul class="'+s+'">';for(d=0;d<b.ul_nr;d++){t+=d==b.index?'<li class="active">':"<li>";if(b.settings.nav.type=="numbers"){t+=d+1}t+="</li>"}t+="</ul></div>";b.nav=a(t);b.nav.appendTo(b.obj);b.navChildren=[];u=b.nav.find("ul").children();u.each(function(){b.navChildren.push(a(this))});if(b.settings.navigateOnHover){u.bind("mouseenter",function(d){c.jumpToItem(a(this).index(),b)})}u.bind("click",function(d){c.jumpToItem(a(this).index(),b)});if(b.settings.nav.thumbs){var v;b.nav.find("li").hover(function(){var c=a(this),d=c.position(),e,f,g,h=c.index();if(b.children[h].attr("dataThumbSrc")){g=b.children[h].attr("dataThumbSrc")}else{g=b.children[h].find("img").attr("src")}f=b.settings.nav.thumbsDimension.split("x");e=b.cropResizeImage(g,f[0],f[1]);v=a('<div class="nav_thumb"><div style="width:'+f[0]+"px;height:"+f[1]+'px;"><img src="'+e.src+'" width="'+e.width+'" height="'+e.height+'" style="margin-left:'+e.style.marginLeft+";margin-top:"+e.style.marginTop+';" /></div></div>');b.nav.append(v);v.css({top:d.top-v.outerHeight(true)-4,left:d.left-v.outerWidth(true)/2+c.outerWidth(true)/2});if(b.touchDevice){c.trigger("click")}},function(){if(v){v.remove()}})}}var w="";if(b.settings.arrows.next){w='<div class="arrow next"></div>'}if(b.settings.arrows.prev){w+='<div class="arrow prev"></div>'}if(w){var x=a(w);x.appendTo(b.obj);x.bind("click",function(){var d=a(this);if(d.hasClass("next")){c.nextItem(b)}else if(d.hasClass("prev")){c.prevItem(b)}});if(b.settings.navigateOnHover){x.bind("mouseenter",function(){var d=a(this);if(d.hasClass("next")){c.nextItem(b)}else if(d.hasClass("prev")){c.prevItem(b)}})}}if(b.settings.auto.active){b.flagStop=false;b.hoverStop=false;b.touchStop=false;if(b.settings.auto.timer=="circular"&&b.ie78){b.settings.auto.timer="none"}if(b.settings.auto.timer=="none"){b.intervalTimer="";b.intervalContor=5}else if(b.settings.auto.timer=="line"){var y=a('<div class="wrapTimer"><div class="timer"></div></div>');b.obj.append(y);y.css({top:b.customPosition(y,b.settings.auto.posVertical,"vertical"),left:b.customPosition(y,b.settings.auto.posHorizontal,"horizontal")});b.intervalTimer=y.find(".timer");b.lineWidth=parseInt(y.css("width"));b.intervalTimer.css({width:0});b.intervalContor=parseInt(b.lineWidth/2)}else if(b.settings.auto.timer=="circular"){b.intervalTimer=a('<div class="circular"><div class="circularWrap"><div class="circularLeft"></div><div class="circularRight"></div></div></div>');b.obj.append(b.intervalTimer);b.intervalTimer.css({top:b.customPosition(b.intervalTimer,b.settings.auto.posVertical,"vertical"),left:b.customPosition(b.intervalTimer,b.settings.auto.posHorizontal,"horizontal")});b.intervalCircularRight=b.intervalTimer.find(".circularRight");b.intervalCircularLeft=b.intervalTimer.find(".circularLeft");b.intervalCircularWrap=b.intervalTimer.find(".circularWrap");b.intervalContor=360}else if(b.settings.auto.timer=="numbers"){b.intervalTimer=a('<div class="numbers"></div>');b.obj.append(b.intervalTimer);b.intervalTimer.css({top:b.customPosition(b.intervalTimer,b.settings.auto.posVertical,"vertical"),left:b.customPosition(b.intervalTimer,b.settings.auto.posHorizontal,"horizontal")});b.intervalContor=99}b.intervalTimeInter=b.settings.auto.time/b.intervalContor;if(b.settings.auto.playPause){var z=a('<div class="playPause play"></div>');b.obj.append(z);z.css({top:b.customPosition(z,b.settings.auto.playPauseVertical,"vertical"),left:b.customPosition(z,b.settings.auto.playPauseHorizontal,"horizontal")});z.bind("click",function(){if(b.settings.auto.playPause){b.settings.auto.playPause=false;z.removeClass("play").addClass("pause");b.flagStop=true;clearInterval(b.run)}else{b.settings.auto.playPause=true;z.removeClass("pause").addClass("play");b.flagStop=false;b.startAuto()}});if(b.settings.auto.playPauseHover&&!b.touchDevice){b.obj.hover(function(){z.show()},function(){z.hide()})}}if(b.settings.auto.hoverStop&&!b.touchDevice){b.obj.hover(function(){b.hoverStop=true;clearInterval(b.run)},function(){b.hoverStop=false;b.startAuto()})}}if(b.settings.navigateWithMouseWheel){function A(a){var d=0;a=a||window.event;if(a.wheelDelta){d=a.wheelDelta/120}else if(a.detail){d=-a.detail/3}if(d>0){c.prevItem(b)}else{c.nextItem(b)}if(a.preventDefault)a.preventDefault();a.returnValue=false}if(window.addEventListener){b.obj[0].addEventListener("DOMMouseScroll",A,false);if(b.propertyIsActive("nav")){b.nav[0].addEventListener("DOMMouseScroll",function(a){return true;a.stopPropagation();var c=0;a=a||window.event;if(a.wheelDelta){c=a.wheelDelta/120}else if(a.detail){c=-a.detail/3}var d=b.nav.find(".zuperScrollbar"),e=b.nav.find("ul"),f,g;if(c>0){f=parseInt(d.css("top"))-b.tempRight;g=parseInt(e.css("top"))+b.tempLeft;if(g>=0){f=0;g=0}}else{var h=b.nav.height();f=parseInt(d.css("top"))+b.tempRight;g=parseInt(e.css("top"))-b.tempLeft;if(Math.abs(g)>=Math.abs(e.height()-h)){f=h-d.height()+1;g=-e.height()+h}}b.nav.find(".zuperScrollbar").css({top:f});b.nav.find("ul").css({top:g});if(a.preventDefault)a.preventDefault();a.returnValue=false},false)}}b.obj[0].onmousewheel=A}if(b.settings.responsive&&b.settings.animate.type!="carousel"){var B="resize.hs";a(window).bind(B,function(){if(b.ie9ResponsiveProblem){b.ie9ResponsiveProblem=false;return}var a=b.obj.width(),c=b.obj.height();if(a!=b.sliderWidth||c!=b.sliderHeight){b.sliderWidth=a;b.sliderHeight=c;b.widthContainer=b.ul.width();b.heightContainer=b.ul.height();b.propH=b.sliderWidth/b.originalWidth;b.propV=b.sliderHeight/b.originalHeight;b.updateSliderDimension()}})}},loading:function(){var b=[],c,d,e,f=this,g;a.expr[":"].uncached=function(b){if(!a(b).is('img[src!=""]')){return false}d=document.createElement("img");d.src=b.src;return!d.complete};var h=/url\((['"]?)(.*?)\1\)/g;f.obj.find("*").each(function(){var c=a(this);if(c.is("img:uncached")){b.push({src:c.attr("src"),element:c[0]})}e=c.css("backgroundImage");if(e){var d;while(d=h.exec(e)){b.push({src:d[2],element:c[0]})}}e=c.attr("dataThumbSrc");if(e){b.push({src:e,element:c[0]})}});e=f.obj.css("backgroundImage");if(e){var i;while(i=h.exec(e)){b.push({src:i[2]})}}var j=b.length,k=0;if(j==0){f.showSlider(f.obj)}for(c=0;c<j;c++){d=new Image;a(d).bind("load.hs error.hs",function(){k++;if(k==j){f.showSlider(f.obj);return false}});d.src=b[c].src}},showSlider:function(){var b,c,d,e,f,c,g=true,h=this;if(h.propertyIsActive("navImages")){for(b=0;b<h.ul_nr;b++){if(h.children[b].attr("dataThumbSrc")){f=h.children[b].attr("dataThumbSrc")}else{f=h.children[b].find("img").attr("src")}e=h.settings.nav.imagesDimension.split("x");c=h.cropResizeImage(f,e[0],e[1]);h.navChildren[b].css({width:e[0],height:e[1]});h.navChildren[b].append(c);d=h.children[b].attr("dataThumbContent");if(d)h.navChildren[b].append(d)}var i=h.nav.height(),j=h.nav.find("ul").height();h.scrollHeight=50;e=i-j;if(e<=0){e=Math.abs(e);var k=Math.ceil(e/h.scrollHeight);h.tempLeft=Math.ceil(e/k);h.tempRight=i/(k+1)}else{}}h.updateSliderDimension();h.obj.removeClass("zuperSliderLoader");if(h.settings.animate.type=="carousel"){h.ul.parent().css({visibility:"visible"});var l=Math.floor(h.settings.animate.car_nr/2),m;b=l;m=setInterval(function(){if(b==l){h.children[b].fadeIn()}else{h.children[b].fadeIn();h.children[h.settings.animate.car_nr-1-b].fadeIn()}if(b<=0){clearInterval(m);h.obj.children().each(function(){var b=a(this);if(!b.hasClass("container")){b.css({display:"none",visibility:"visible"})}});h.obj.children().show();if(h.propertyIsActive("caption")){h.caption(h.children[h.index],"on")}if(h.propertyIsActive("caption")){h.caption(h.children[h.index],"on")}if(h.settings.auto.playPauseHover){h.obj.find(".playPause").hide()}}b--},150)}else{h.obj.children().each(function(){a(this).css({display:"none",visibility:"visible"})});h.children[h.index].addClass("active3");h.obj.children().fadeIn("normal",function(){if(g){g=false;if(h.propertyIsActive("caption")){h.caption(h.children[h.index],"on")}if(h.settings.auto.playPauseHover){h.obj.find(".playPause").hide()}}})}if(h.settings.auto.active){h.startAuto()}},updateSliderDimension:function(){var a,b=this;b.active=true;if(b.settings.bgImageScaleAndCenter){var c=[],d,e,f,g,h,i,j,k,l,m;for(d=0;d<b.children.length;d++){k=b.children[d].find("img.zuper");if(k.length){c.push(k[0])}}if(c.length>0){for(d=0;d<c.length;d++){g=parseInt(c[d].getAttribute("data-width"));h=parseInt(c[d].getAttribute("data-height"));if(!g){g=c[d].width;c[d].setAttribute("data-width",g)}if(!h){h=c[d].height;c[d].setAttribute("data-height",h)}i=g/b.sliderWidth;j=h/b.sliderHeight;c[d].setAttribute("style","");if(i<1||j<1){if(g>b.sliderWidth){c[d].style.marginLeft=-Math.floor((g-b.sliderWidth)/2)+"px"}else if(g<b.sliderWidth){c[d].style.marginLeft=Math.floor((b.sliderWidth-g)/2)+"px"}if(h>b.sliderHeight){c[d].style.marginTop=-Math.floor((h-b.sliderHeight)/2)+"px"}else if(h<b.sliderHeight){c[d].style.marginTop=Math.floor((b.sliderHeight-h)/2)+"px"}}else if(i>j){c[d].width=Math.ceil(g/j);c[d].height=Math.ceil(h/j);c[d].style.marginLeft=-Math.floor((g/j-b.sliderWidth)/2)+"px"}else if(j>i){c[d].width=Math.ceil(g/i);c[d].height=Math.ceil(h/i);c[d].style.marginTop=-Math.floor((h/i-b.sliderHeight)/2)+"px"}else{c[d].width=Math.ceil(g/i);c[d].height=Math.ceil(h/j)}}}}if(b.settings.arrows.next){a=b.obj.find(".next");a.css({top:b.customPosition(a,b.settings.arrows.nextVertical,"vertical"),left:b.customPosition(a,b.settings.arrows.nextHorizontal,"horizontal")})}if(b.settings.arrows.prev){a=b.obj.find(".prev");a.css({top:b.customPosition(a,b.settings.arrows.prevVertical,"vertical"),left:b.customPosition(a,b.settings.arrows.prevHorizontal,"horizontal")})}if(b.settings.auto.active){if(b.settings.auto.timer=="line"){a=b.obj.find(".wrapTimer");a.css({top:b.customPosition(a,b.settings.auto.posVertical,"vertical"),left:b.customPosition(a,b.settings.auto.posHorizontal,"horizontal")});b.lineWidth=parseInt(a.css("width"))*b.propH}else if(b.settings.auto.timer=="circular"){a=b.obj.find(".circular");a.css({top:b.customPosition(a,b.settings.auto.posVertical,"vertical"),left:b.customPosition(a,b.settings.auto.posHorizontal,"horizontal")})}else if(b.settings.auto.timer=="numbers"){a=b.obj.find(".numbers");a.css({top:b.customPosition(a,b.settings.auto.posVertical,"vertical"),left:b.customPosition(a,b.settings.auto.posHorizontal,"horizontal")})}if(b.settings.auto.playPause){a=b.obj.find(".playPause");a.css({top:b.customPosition(a,b.settings.auto.playPauseVertical,"vertical"),left:b.customPosition(a,b.settings.auto.playPauseHorizontal,"horizontal")})}}if(b.propertyIsActive("nav")){b.nav.css({top:b.customPosition(b.nav,b.settings.nav.navVertical,"vertical"),left:b.customPosition(b.nav,b.settings.nav.navHorizontal,"horizontal")})}if(b.propertyIsActive("caption")){b.settings.captionCallback.call(b.obj,b.sliderWidth,b.sliderHeight)}b.active=false},updateCaptionPosition:function(){var b=[],c=this,d,e,f;c.obj.find(".caption").each(function(){b.push(a(this))});for(d=0;d<b.length;d++){e=0;f=0;b[d].removeAttr("style");var g,h,i,j,k={};if(parseInt(b[d].css("top"))>c.originalHeight/2){if(c.propV<.9){e=40}if(c.propV<.8){e=60}if(c.propV<.7){e=80}}if(parseInt(b[d].css("left"))>c.originalWidth/2){if(c.propH<.9){f=40}if(c.propH<.8){f=60}if(c.propH<.7){f=80}}k.opacity=1;k.top=parseInt(b[d].css("top"))*c.propV-e;k.left=parseInt(b[d].css("left"))*c.propH-f;b[d].css(k);if(c.propH<.6){b[d].hide()}}},touchMouseUp:function(b){var c=b.data;a(document).unbind(c.mousemove+" "+c.mouseup);c.ul.removeClass("grabbing");var d=c.index,e=c.index,f;c.touchStop=false;if(c.touchPos==0){c.active=false}else if(Math.abs(c.touchPos)<31){c.off(e,d);c.ul.animate({left:0},c.settings.animate.speed,"easeOutBounce",function(){c.ul.children().removeClass("active2").removeAttr("style");c.on(d)})}else{if(c.touchPos>0){d=Math.ceil(c.touchPos/c.widthContainer)+c.index;f=-Math.abs(c.index-d)*c.widthContainer;if(d>c.ul_nr-1){d=d-c.ul_nr}}else if(c.touchPos<0){d=c.index-Math.ceil(-c.touchPos/c.widthContainer);f=Math.abs(c.index-d)*c.widthContainer;if(d<0){d=c.ul_nr+d}}c.off(e,d);c.ul.animate({left:f},c.settings.animate.speed,function(){c.ul.children().removeClass().removeAttr("style");c.children[d].addClass("active3");c.ul.css({left:0});c.on(d)})}return true},preTouchMouseMove:function(b){var c=b.data.me,d=b.data.pageX,e=b.data.pageY,f=b.data.ee,g=b,h={};if(c.touchDevice){var i=b.originalEvent.touches;if(i.length>1){return false}b=i[0]}if(c.touchStart===1){h.pageX=d;h.pageX1=b.pageX;c.touchMouseMove(h)}else if(c.touchStart===0){if(Math.abs(d-b.pageX)>5){if(f.preventDefault){f.preventDefault()}if(g.preventDefault){g.preventDefault()}if(c.active)return false;if(c.settings.auto.active){c.touchStop=true;clearInterval(c.run)}c.active=true;c.touchPos=0;c.ul.addClass("grabbing");c.touchStart=1;c.touchMouseMove(d,b.pageX,c)}else if(Math.abs(e-b.pageY)>5){c.touchStart=2;a(document).unbind(c.mousemove+" "+c.mouseup)}}},touchMouseMove:function(a){var b,c=a.pageX,d=a.pageX1,e=this;e.touchPos=c-d;e.clickState=false;if(e.touchPos>0){b=Math.ceil(e.touchPos/e.widthContainer)+e.index;if(b>e.ul_nr-1){b=b-e.ul_nr}if(e.touchPos>=e.widthContainer*(e.ul_nr-1)){e.touchPos=e.widthContainer*(e.ul_nr-1)}else{e.children[b].addClass("active2").css({left:Math.ceil(e.touchPos/e.widthContainer)*e.widthContainer})}}else if(e.touchPos<0){b=e.index-Math.ceil(-e.touchPos/e.widthContainer);if(b<0){b=e.ul_nr+b}if(Math.abs(e.touchPos)>=e.widthContainer*(e.ul_nr-1)){e.touchPos=-e.widthContainer*(e.ul_nr-1)}else{e.children[b].addClass("active2").css({left:-Math.ceil(-e.touchPos/e.widthContainer)*e.widthContainer})}}e.ul.css({left:-e.touchPos});return false},startAuto:function(){var a=this;if(!a.active&&!a.flagStop&&!a.touchStop&&!a.hoverStop){a.run=setInterval(function(){if(a.intervalContor<0){clearInterval(a.run);c.nextItem(a);return}if(a.settings.auto.timer=="line"){a.intervalTimer.css("width",function(a,b){return parseInt(b)+2})}else if(a.settings.auto.timer=="circular"){var b=181-a.intervalContor;if(b<0){a.intervalCircularRight.css({"-ms-transform":"rotate("+b+"deg)","-webkit-transform":"rotate("+b+"deg)","-o-transform":"rotate("+b+"deg)","-moz-transform":"rotate("+b+"deg)"})}else if(b==0){a.intervalCircularRight.css({"-ms-transform":"rotate("+b+"deg)","-webkit-transform":"rotate("+b+"deg)","-o-transform":"rotate("+b+"deg)","-moz-transform":"rotate("+b+"deg)"});var d=a.intervalCircularWrap.css("clip").replace(/,|rect\(|\)/g,"").split(" ");d="rect(0 "+d[1]+" "+d[2]+" 0)";a.intervalCircularWrap.css("clip",d);a.intervalCircularLeft.show()}else{b=-a.intervalContor;a.intervalCircularLeft.css({"-ms-transform":"rotate("+b+"deg)","-webkit-transform":"rotate("+b+"deg)","-o-transform":"rotate("+b+"deg)","-moz-transform":"rotate("+b+"deg)"})}}else if(a.settings.auto.timer=="numbers"){var e=100-a.intervalContor;if(e<10){e="00"+e}else if(e<100){e="0"+e}a.intervalTimer.text(e)}a.intervalContor--},a.intervalTimeInter)}},resetAuto:function(){var a=this;clearInterval(a.run);if(a.settings.auto.timer=="none"){a.intervalContor=5}else if(a.settings.auto.timer=="line"){a.intervalContor=parseInt(a.lineWidth/2);a.intervalTimer.css({width:0})}else if(a.settings.auto.timer=="circular"){a.intervalCircularRight.css({"-moz-transform":"rotate(180deg)","-webkit-transform":"rotate(180deg)","-o-transform":"rotate(180deg)","-ms-transform":"rotate(180deg)"});a.intervalCircularLeft.css({"-moz-transform":"rotate(180deg)","-webkit-transform":"rotate(180deg)","-o-transform":"rotate(180deg)","-ms-transform":"rotate(180deg)"});a.intervalCircularLeft.hide();var b=a.intervalCircularWrap.css("clip").replace(/,|rect\(|\)|px/g,"").split(" ");b="rect(0 "+b[1]+"px "+b[2]+"px "+b[2]/2+"px)";a.intervalCircularWrap.css("clip",b);a.intervalContor=360}else if(a.settings.auto.timer=="numbers"){a.intervalTimer.text("");a.intervalContor=99}},randomSlide:function(a){var b=a;while(b==a){b=Math.floor(Math.random()*this.ul_nr)}return b},caption:function(b,c){var d=[],e,f,g,h,i,j={},k=this,l,m,n,o,p=[],q;k.obj.find(".caption").css({opacity:0});if(c=="on"){b.find(".caption").each(function(){d.push(a(this))});for(l=0;l<d.length;l++){q=d[l].position();n=q.left;o=q.top;e=parseInt(d[l].attr("dataOffset"));if(isNaN(e))e=10;h=parseInt(d[l].attr("dataDelay"));if(isNaN(h))h=0;i=d[l].attr("dataSpeed");if(typeof i==="undefined")i="normal";if(!(i=="slow"||i=="normal"||i=="fast")){i=parseInt(i)}g=d[l].attr("dataEasing");if(typeof g==="undefined")g="linear";f=d[l].attr("dataEffects");if(typeof f==="undefined"){f=["fade","left"]}else{f=f.split(" ")}if(a.inArray("fade",f)!=-1){j.opacity=1}else{d[l].css({opacity:1})}if(a.inArray("left",f)!=-1){d[l].css({left:(n-e)*100/k.sliderWidth+"%"});j.left=n*100/k.sliderWidth+"%"}if(a.inArray("top",f)!=-1){d[l].css({top:(o-e)*100/k.sliderHeight+"%"});j.top=o*100/k.sliderHeight+"%"}if(a.inArray("right",f)!=-1){d[l].css({left:(n+e)*100/k.sliderWidth+"%"});j.left=n*100/k.sliderWidth+"%"}if(a.inArray("bottom",f)!=-1){d[l].css({top:(o+e)*100/k.sliderHeight+"%"});j.top=o*100/k.sliderHeight+"%"}d[l].delay(h).animate(j,i,g);j={}}}else if(c=="off"){}},multipleEffects:function(a){var b,c,d,e=this;if(e.settings.multipleEff.random){b=Math.floor(Math.random()*e.settings.multipleEff.eff.length)}else{b=a>e.settings.multipleEff.eff.length-1?e.settings.multipleEff.eff.length-1:a}d=e.settings.multipleEff.eff[b].split("|");d[2]=d[2].split(",");d[3]=d[3].split(",");if(d[0]){e.settings.animate.type=d[0]}if(d[1]){e.settings.animate.speed=parseInt(d[1])}if(d[2]){e.settings.animate.position=d[2]}if(d[3]){e.settings.animate.effect=d[3]}if(d[4]){e.settings.animate.cols=parseInt(d[4])}if(d[5]){e.settings.animate.rows=parseInt(d[5])}if(d[6]){e.settings.animate.delay=parseInt(d[6])}if(d[7]){e.settings.animate.easing=d[7]}if(d[8]){e.settings.auto.time=parseInt(d[8])}},off:function(b,c){var d=this;d.active=true;if(d.settings.auto.active){d.resetAuto()}if(a.isFunction(d.callbackFunctionItemsEnd[b])){d.callbackFunctionItemsEnd[b].apply(d)}if(a.isFunction(d.callbackFunctionItemsStart[c])){d.callbackFunctionItemsStart[c].apply(d)}if(d.propertyIsActive("nav")){d.navChildren[b].removeClass("active");d.navChildren[c].addClass("active")}if(d.propertyIsActive("caption"))d.caption(d.children[b],"off")},on:function(a){var b=this;if(b.delayStop){delete this;return}b.active=false;if(b.settings.auto.active){if(b.settings.multipleEff.active){b.intervalTimeInter=b.settings.auto.time/b.intervalContor}b.startAuto()}if(b.propertyIsActive("caption")){b.caption(b.children[a],"on")}b.index=a;if(b.callbackFunction){b.callbackFunction.call(b.obj);b.callbackFunction=null}},customPosition:function(a,b,c){var d=this,e,f;var g=d.sliderWidth;if(d.settings.animate.type=="carousel"){g=parseInt(d.ul.css("width"))}if(typeof b==="number"){if(c=="vertical"){b=b*d.propV}else if(c=="horizontal"){b=b*d.propH}return b}else{if(b.search(/\+/)!==-1){f=b.split("+");b=f[0];e="plus"}else if(b.search(/-/)!==-1){f=b.split("-");b=f[0];e="minus"}}switch(b){case"middle":if(c=="vertical"){b=parseInt((d.sliderHeight-a.outerHeight(true))/2)}else{b=parseInt((g-a.outerWidth(true))/2)}break;case"start":if(c=="vertical"){b=-a.outerHeight(true)}else{b=-a.outerWidth(true)}break;case"end":if(c=="vertical"){b=parseInt(d.sliderHeight)}else{b=parseInt(g)}break}if(e=="plus"){b+=parseInt(f[1])}else if(e=="minus"){b-=parseInt(f[1])}return b},propertyIsActive:function(a){var b=this;if(a=="caption"){if(b.settings.caption==false||(b.settings.animate.type=="sliderHorizontal"||b.settings.animate.type=="sliderVertical")&&b.settings.animate.perPage!=1){return false}else if(b.settings.caption){return true}}else if(a=="touchNavigation"){if(b.settings.animate.type=="carousel"||b.settings.touchNavigation==false||(b.settings.animate.type=="sliderHorizontal"||b.settings.animate.type=="sliderVertical")&&b.settings.animate.perPage!=1){return false}else if(b.settings.touchNavigation){return true}}else if(a=="nav"){if(b.settings.animate.type=="carousel"||b.settings.nav.active==false||(b.settings.animate.type=="sliderHorizontal"||b.settings.animate.type=="sliderVertical")&&b.settings.animate.perPage!=1){return false}else if(b.settings.nav.active){return true}}else if(a=="navImages"){if(b.settings.animate.type=="carousel"||b.settings.nav.active==false||b.settings.nav.type!="images"||(b.settings.animate.type=="sliderHorizontal"||b.settings.animate.type=="sliderVertical")&&b.settings.animate.perPage!=1){return false}else if(b.settings.nav.active&&b.settings.nav.type=="images"){return true}}},cropResizeImage:function(a,b,c){var d=new Image,e,f,g,h;d.src=a;e=d.width;f=d.height;g=e/b;h=f/c;if(g<1||h<1){if(e>b){d.style.marginLeft=-Math.floor((e-b)/2)+"px"}else if(e<b){d.style.marginLeft=Math.floor((b-e)/2)+"px"}if(f>c){d.style.marginTop=-Math.floor((f-c)/2)+"px"}else if(f<c){d.style.marginTop=Math.floor((c-f)/2)+"px"}}else if(g>h){d.width=Math.ceil(e/h);d.height=Math.ceil(f/h);d.style.marginLeft=-Math.floor((e/h-b)/2)+"px"}else if(h>g){d.width=Math.ceil(e/g);d.height=Math.ceil(f/g);d.style.marginTop=-Math.floor((f/g-c)/2)+"px"}else{d.width=Math.ceil(e/g);d.height=Math.ceil(f/h)}return d},noEffect:function(a,b,c){var d=this;d.off(a,b);d.children[b].addClass("active3");d.children[a].removeClass("active3");d.on(b)},fade:function(a,b,c){var d=this;d.off(a,b);var e=d.children[a],f=d.children[b];e.siblings().css({opacity:0});f.addClass("active2");e.fadeTo(d.settings.animate.speed,0,function(){e.removeClass("active3");f.addClass("active3").removeClass("active2");f.fadeTo(d.settings.animate.speed,1,function(){d.ul.children().removeAttr("style");d.on(b)})})},crossFade:function(a,b,c){var d=this;d.off(a,b);var e=d.children[a],f=d.children[b];f.addClass("active2");e.fadeTo(d.settings.animate.speed,0,function(){e.removeClass("active3").removeAttr("style");f.addClass("active3").removeClass("active2");d.on(b)})},sliderHorizontal:function(a,b,c){var d=this;d.off(a,b);var e=d.children[a],f=d.children[b],g;if(c=="next"){g=d.widthContainer}else{g=-d.widthContainer}f.addClass("active2").css({left:g});var h=parseFloat(d.ul.css("left"))?parseFloat(d.ul.css("left")):0;d.ul.animate({left:-g/d.settings.animate.perPage+h},d.settings.animate.speed,d.settings.animate.easing,function(){if(-parseFloat(d.ul.css("left"))==g){d.ul.css({left:0});e.removeClass("active3");f.css({left:0}).removeClass("active2").addClass("active3")}else{b=a}d.on(b)})},sliderVertical:function(a,b,c){var d=this;d.off(a,b);var e=d.children[a],f=d.children[b],g;if(c=="next"){g=d.heightContainer}else{g=-d.heightContainer}f.addClass("active2").css({top:g});var h=parseFloat(d.ul.css("top"))?parseFloat(d.ul.css("top")):0;d.ul.animate({top:-g/d.settings.animate.perPage+h},d.settings.animate.speed,d.settings.animate.easing,function(){if(-parseFloat(d.ul.css("top"))==g){d.ul.css({top:0});e.removeClass("active3");f.css({top:0}).removeClass("active2").addClass("active3")}else{b=a}d.on(b)})},carousel:function(b,c,d){var e=this;e.off(b,c);var f,g,h,i,j=e.children[b],k=e.children[c],l=[],m=Math.floor(e.settings.animate.car_nr/2),n=c-m>=0?c-m:e.ul_nr+c-m,o=0,p=9-m,q=0,r=0;k.addClass("active3");j.removeClass("active3");if(b>e.ul_nr-1-m&&c<m){d="next"}else if(c>e.ul_nr-1-m&&b<m){d="prev"}if(d=="next"){f=1;g=c-b;if(g<0){g=e.ul_nr-b+c}}else{f=0;g=b-c;if(g<0){g=e.ul_nr-c+b}}if(f){n=n-g>=0?n-g:e.ul_nr+n-g}for(h=0;h<e.settings.animate.car_nr+g;h++){l.push(n);if(n>=e.ul_nr-1){n=0}else{n++}}var s=[5,6,7,7.5,7.7,7.8,7.9,7.92,7.94,7.96,7.98],t=m;var u=0;for(h=0;h<l.length;h++){i=e.children[l[h]];if(f){if(h<g){u=0}else{if(h<=m+g){q+=e.sliderWidth*p/20;p++;t--;r=p/10}else if(h>m+g){q+=e.sliderWidth*(p+1)/20;p--;t++;r=p/10}u=1;if(h>=l.length-g){i.show();i.css({left:e.ul.width()-(9-m)*e.sliderWidth/10})}}}else{if(h<=m){q+=e.sliderWidth*p/20;p++;t--;r=p/10}else if(h>m){q+=e.sliderWidth*(p+1)/20;p--;t++;r=p/10}u=1;if(h>=e.settings.animate.car_nr){u=0}if(h<g){i.css({left:0});i.show()}}var v=setTimeout(function(){var a=10-m,b;for(b=0;b<l.length;b++){e.children[l[b]].css({zIndex:a});if(f){if(b<m+g){a++}else if(b>=m+g){a--}}else{if(b<m){a++}else if(b>=m){a--}}}},e.settings.animate.speed/3.5);if(typeof s[t]==="undefined")s[t]=0;a(function(){i.animate({width:e.sliderWidth*p/10,height:e.sliderHeight*p/10,left:q,opacity:u,marginTop:(e.sliderHeight-e.sliderHeight*p/10)*(s[t]/10)},e.settings.animate.speed);i.find("img").animate({width:e.sliderWidth*p/10,height:e.sliderHeight*p/10,opacity:r},e.settings.animate.speed,function(){o++;if(o==l.length){if(f){for(h=0;h<g;h++){e.children[l[h]].hide()}}else{for(h=e.settings.animate.car_nr;h<l.length;h++){e.children[l[h]].hide()}}e.on(c)}})})}},square:function(b,c,d){var e=this;e.off(b,c);var f=e.children[b],g=e.children[c],h=Math.ceil(e.widthContainer/e.settings.animate.cols),i=Math.ceil(e.heightContainer/e.settings.animate.rows),j={},k;e[e.settings.animate.position[0]](f.html(),h,i,e.settings.animate.position[1]);g.addClass("active3");f.removeClass("active3");if(a.inArray("fade",e.settings.animate.effect)!=-1){j.opacity=0}if(a.inArray("slideUp",e.settings.animate.effect)!=-1){j.height=0}if(a.inArray("slideUpLeft",e.settings.animate.effect)!=-1){j.height=0;j.width=0}if(a.inArray("slideUpRight",e.settings.animate.effect)!=-1){j.height=0;j.width=0;j.marginLeft=h}if(a.inArray("slideDown",e.settings.animate.effect)!=-1){j.marginTop=i;j.height=0}if(a.inArray("slideDownLeft",e.settings.animate.effect)!=-1){j.marginTop=i;j.height=0;j.width=0}if(a.inArray("slideDownRight",e.settings.animate.effect)!=-1){j.marginTop=i;j.marginLeft=h;j.height=0;j.width=0}if(a.inArray("slideLeft",e.settings.animate.effect)!=-1){j.width=0}if(a.inArray("slideRight",e.settings.animate.effect)!=-1){j.width=0;j.marginLeft=h}if(a.inArray("slideHCenter",e.settings.animate.effect)!=-1){j.width=0;j.marginLeft=parseInt(h/2,10)}if(a.inArray("slideVCenter",e.settings.animate.effect)!=-1){j.height=0;j.marginTop=parseInt(i/2,10)}if(a.inArray("slideCenter",e.settings.animate.effect)!=-1){j.width=0;j.marginLeft=parseInt(h/2,10);j.height=0;j.marginTop=parseInt(i/2,10)}if(a.inArray("moveTop",e.settings.animate.effect)!=-1){j.top=-i}if(a.inArray("moveLeft",e.settings.animate.effect)!=-1){j.left=-h}if(a.inArray("moveRight",e.settings.animate.effect)!=-1){j.left=e.widthContainer}if(a.inArray("moveBottom",e.settings.animate.effect)!=-1){j.top=e.heightContainer}var l,m=0,n=0,o=e.ul.find(".block"),p=true;for(k=0;k<e.settings.animate.cols*e.settings.animate.rows;k++){if(a.inArray("slideRand",e.settings.animate.effect)!=-1){if(j.opacity==0){j={};j.opacity=0}else{j={}}m++;if(e.settings.animate.cols%2==0&&k%e.settings.animate.cols==0&&k!=0){m--}l=m%2==0?Math.ceil(Math.random()*2):Math.ceil(Math.random()*2+2);if(l==1){j.height=0}else if(l==2){j.marginTop=i;j.height=0}else if(l==3){j.width=0}else if(l==4){j.width=0;j.marginLeft=h}}else if(a.inArray("slideAlternativeV",e.settings.animate.effect)!=-1){if(j.opacity==0){j={};j.opacity=0}else{j={}}j.height=0;if(p){p=false}else{j.marginTop=i;p=true}}else if(a.inArray("slideAlternativeH",e.settings.animate.effect)!=-1){if(j.opacity==0){j={};j.opacity=0}else{j={}}j.width=0;if(p){p=false}else{j.marginLeft=h;p=true}}o.eq(k).delay(e.settings.animate.delay*k).animate(j,e.settings.animate.speed,e.settings.animate.easing,function(){if(++n==e.settings.animate.cols*e.settings.animate.rows){o.remove();e.on(c)}})}},liniarSquare:function(a,b,c,d){var e=this;var f,g,h,i,j="",k,l;if(d=="rtl"||d=="ltr"){h=e.settings.animate.cols;i=e.settings.animate.rows}else{h=e.settings.animate.rows;i=e.settings.animate.cols}for(k=0;k<h;k++){for(l=0;l<i;l++){switch(d){case"ltr":f=l;g=k;break;case"rtl":f=l;g=e.settings.animate.cols-1-k;break;case"ttb":f=k;g=l;break;default:f=e.settings.animate.rows-1-k;g=l}j+='<div class="block" style="width:'+b+"px;height:"+c+"px;top:"+f*c+"px;left:"+g*b+'px"><li style="top:-'+f*c+"px;left:-"+g*b+'px">'+a+"</li></div>"}}e.ul.append(j)},randomSquare:function(a,b,c,d){var e=this;var f=[],g="",h,i;for(h=0;h<e.settings.animate.cols;h++){for(i=0;i<e.settings.animate.rows;i++){f.push(new Array(i,h))}}for(h=0;h<f.length;h++){var j=Math.floor(Math.random()*f.length),k=f[j];f[j]=f[h];f[h]=k}for(h=0;h<f.length;h++){g+='<div class="block" style="width:'+b+"px;height:"+c+"px;top:"+f[h][0]*c+"px;left:"+f[h][1]*b+'px"><li style="top:-'+f[h][0]*c+"px;left:-"+f[h][1]*b+'px">'+a+"</li></div>"}e.ul.append(g)},marginToCenterSquare:function(a,b,c,d){var e=this;var f,g,h="",i,j,k,l,m,n;if(d=="horizontal"){i=e.settings.animate.cols;j=e.settings.animate.rows}else{i=e.settings.animate.rows;j=e.settings.animate.cols}n=true;for(k=0,m=0;m<i;m++){for(l=0;l<j;l++){if(d=="horizontal"){f=l;g=k}else{f=k;g=l}h+='<div class="block" style="width:'+b+"px;height:"+c+"px;top:"+f*c+"px;left:"+g*b+'px"><li style="top:-'+f*c+"px;left:-"+g*b+'px">'+a+"</li></div>"}if(n){k=i-Math.ceil(m/2)-1;n=false}else{k=Math.ceil(m/2);n=true}}e.ul.append(h)},centerToMarginSquare:function(a,b,c,d){var e=this;var f,g,h="",i,j,k,l,m,n,o;if(d=="horizontal"){i=e.settings.animate.cols;j=e.settings.animate.rows}else{i=e.settings.animate.rows;j=e.settings.animate.cols}m=Math.floor(i/2);n=true;for(k=m,o=0;o<i;o++){for(l=0;l<j;l++){if(d=="horizontal"){f=l;g=k}else{f=k;g=l}h+='<div class="block" style="width:'+b+"px;height:"+c+"px;top:"+f*c+"px;left:"+g*b+'px"><li style="top:-'+f*c+"px;left:-"+g*b+'px">'+a+"</li></div>"}if(n){k=m-Math.ceil((o+1)/2);n=false}else{k=m+Math.ceil((o+1)/2);n=true}}e.ul.append(h)},sinusSquare:function(a,b,c,d){var e=this;var f,g,h="",i,j,k,l,m=0,n=true,o;if(d=="horizontal"){i=e.settings.animate.rows;j=e.settings.animate.cols}else{i=e.settings.animate.cols;j=e.settings.animate.rows}for(k=m;k<=i;k++){for(l=0,o=m;l<j;l++){if(d=="horizontal"){f=o;g=k}else{f=k;g=o}o=m-l>0?m-l-1:l+1;h+='<div class="block" style="width:'+b+"px;height:"+c+"px;top:"+g*c+"px;left:"+f*b+'px"><li style="top:-'+g*c+"px;left:-"+f*b+'px">'+a+"</li></div>"}if(n){m=j-1;n=false}else{m=0;n=true}}e.ul.append(h)},diagonalSquare:function(a,b,c,d){var e=this;var f="",g,h,i,j,k=[],l;if(d=="LT"){i=0;for(h=1;h<e.settings.animate.cols+e.settings.animate.rows;h++){j=h;if(h>e.settings.animate.rows){j=e.settings.animate.rows}if(h>e.settings.animate.cols){i++}for(g=j-1;g>=i;g--){k.push(new Array(g,0))}}l=0;i=0;for(h=1;h<e.settings.animate.cols+e.settings.animate.rows;h++){j=h;if(h>e.settings.animate.cols){j=e.settings.animate.cols}if(h>e.settings.animate.rows){i++}for(g=i;g<j;g++){k[l][1]=g;l++}}for(g=0;g<k.length;g++){f+='<div class="block" style="width:'+b+"px;height:"+c+"px;top:"+k[g][0]*c+"px;left:"+k[g][1]*b+'px"><li style="top:-'+k[g][0]*c+"px;left:-"+k[g][1]*b+'px">'+a+"</li></div>"}}else if(d=="RT"){k=[];i=e.settings.animate.cols;for(h=1;h<e.settings.animate.cols+e.settings.animate.rows;h++){j=e.settings.animate.cols-h;if(h>e.settings.animate.rows){i--}if(h>e.settings.animate.cols){j=0}for(g=j;g<i;g++){k.push(new Array(0,g))}}l=0;i=0;for(h=1;h<e.settings.animate.cols+e.settings.animate.rows;h++){j=h;if(h>e.settings.animate.rows){j=e.settings.animate.rows}if(h>e.settings.animate.cols){i++}for(g=i;g<j;g++){k[l][0]=g;l++}}for(g=0;g<k.length;g++){f+='<div class="block" style="width:'+b+"px;height:"+c+"px;top:"+k[g][0]*c+"px;left:"+k[g][1]*b+'px"><li style="top:-'+k[g][0]*c+"px;left:-"+k[g][1]*b+'px">'+a+"</li></div>"}}else if(d=="LB"){k=[];i=e.settings.animate.cols;for(h=1;h<e.settings.animate.cols+e.settings.animate.rows;h++){j=e.settings.animate.cols-h;if(h>e.settings.animate.rows){i--}if(h>e.settings.animate.cols){j=0}for(g=j;g<i;g++){k.push(new Array(g,0))}}l=0;i=0;for(h=1;h<e.settings.animate.cols+e.settings.animate.rows;h++){j=h;if(h>e.settings.animate.rows){j=e.settings.animate.rows}if(h>e.settings.animate.cols){i++}for(g=i;g<j;g++){k[l][1]=g;l++}}for(g=0;g<k.length;g++){f+='<div class="block" style="width:'+b+"px;height:"+c+"px;top:"+k[g][0]*c+"px;left:"+k[g][1]*b+'px"><li style="top:-'+k[g][0]*c+"px;left:-"+k[g][1]*b+'px">'+a+"</li></div>"}}else if(d=="RB"){k=[];i=e.settings.animate.rows;for(h=1;h<e.settings.animate.cols+e.settings.animate.rows;h++){j=e.settings.animate.rows-h;if(h>e.settings.animate.rows){j=0}if(h>e.settings.animate.cols){i--}for(g=j;g<i;g++){k.push(new Array(g,0))}}l=0;i=e.settings.animate.cols;for(h=1;h<e.settings.animate.cols+e.settings.animate.rows;h++){j=e.settings.animate.cols-h;if(h>e.settings.animate.cols){j=0}if(h>e.settings.animate.rows){i--}for(g=i-1;g>=j;g--){k[l][1]=g;l++}}for(g=0;g<k.length;g++){f+='<div class="block" style="width:'+b+"px;height:"+c+"px;top:"+k[g][0]*c+"px;left:"+k[g][1]*b+'px"><li style="top:-'+k[g][0]*c+"px;left:-"+k[g][1]*b+'px">'+a+"</li></div>"}}e.ul.append(f)}};var c={init:function(c,d){var e={mode:"none",arrows:{next:true,nextHorizontal:25,nextVertical:403,prev:true,prevHorizontal:25,prevVertical:403},nav:{active:true,type:"bullets",imagesDimension:"100x100",navHorizontal:96,navVertical:34,thumbs:true,thumbsDimension:"100x100"},auto:{active:false,time:3e3,timer:"none",hoverStop:true,posHorizontal:567,posVertical:50,playPause:true,playPauseHover:true,playPauseHorizontal:580,playPauseVertical:62},animate:{type:"square",speed:1e3,position:["liniarSquare","rtl"],effect:["fade"],cols:10,rows:1,delay:20,easing:"swing",car_nr:7},multipleEff:{active:false,random:false,eff:[""]},order:{random:false,firstSlide:1,startSlide:1},caption:true,captionCallback:function(){},touchNavigation:true,bgImageScaleAndCenter:true,responsive:true,navigateOnHover:true,navigateWithMouseWheel:true};var f=a(this),g;if(c)a.extend(e,c);g=new b(f,e);f.data("zuperSlider",g);if(a.isFunction(d)){d.call(f.obj)}},nextItem:function(b){var c;if(a.isFunction(b)){c=a(this).data("zuperSlider");c.callbackFunction=b}else{c=b;c.callbackFunction=null}if(c.active)return false;var d=c.index,e=d+1;if(c.settings.order.random){e=c.randomSlide(d)}else if(e>c.ul_nr-1){e=0}if(c.settings.multipleEff.active)c.multipleEffects(e);c[c.settings.animate.type](d,e,"next")},prevItem:function(b){var c;if(a.isFunction(b)){c=a(this).data("zuperSlider");c.callbackFunction=b}else{c=b;c.callbackFunction=null}if(c.active)return false;var d=c.index,e=d-1;if(c.settings.order.random){e=c.randomSlide(d)}else if(e<0){e=c.ul_nr-1}if(c.settings.multipleEff.active)c.multipleEffects(e);c[c.settings.animate.type](d,e,"prev")},jumpToItem:function(b,c){var d;if(c){if(a.isFunction(c)){d=a(this).data("zuperSlider");d.callbackFunction=c}else{d=c;d.callbackFunction=null}}else{d=a(this).data("zuperSlider")}if(!b){b=0}if(d.active)return false;var e=d.index,f;if(e<b){f="next"}else if(e>b){f="prev"}else{return false}if(d.settings.multipleEff.active)d.multipleEffects(b);d[d.settings.animate.type](e,b,f)},stopSlideshow:function(b){var c=a(this).data("zuperSlider"),d=c.obj.find(".playPause"),e=false;if(d.length){if(d.hasClass("play")){d.trigger("click");e=true}}else{if(c.settings.auto.active&&!c.flagStop){c.flagStop=true;clearInterval(c.run);e=true}}if(a.isFunction(b)&&e){b.call(c.obj)}},resumeSlideshow:function(b){var c=a(this).data("zuperSlider"),d=c.obj.find(".playPause"),e=false;if(d.length){if(d.hasClass("pause")){d.trigger("click");e=true}}else{if(c.settings.auto.active&&c.flagStop){c.flagStop=false;c.startAuto();e=true}}if(a.isFunction(b)&&e){b.call(c.obj)}},destroy:function(b){var c=a(this).data("zuperSlider");if(c.settings.auto.active){clearInterval(c.run);c.delayStop=true}c.obj.unbind();c.obj.parent().find("*").unbind();a(document).unbind(c.mousemove+" "+c.mouseup);a(window).unbind("resize.hs");c.obj.remove();if(a.isFunction(b)){b.call(c.obj)}},startCallback:function(){var b=a(this).data("zuperSlider"),c,d=arguments;if(d.length<1||!a.isFunction(d[0])){return}else if(d.length==1){for(c=0;c<b.ul_nr;c++){b.callbackFunctionItemsStart[c]=d[0]}}else{for(c=1;c<d.length;c++){if(d[c]==0)continue;b.callbackFunctionItemsStart[d[c]-1]=d[0];if(b.index==d[c]-1){d[0].apply(b)}}}},endCallback:function(){var b=a(this).data("zuperSlider"),c,d=arguments;if(d.length<1||!a.isFunction(d[0])){return}else if(d.length==1){for(c=0;c<b.ul_nr;c++){b.callbackFunctionItemsEnd[c]=d[0]}}else{for(c=1;c<d.length;c++){if(d[c]==0)continue;b.callbackFunctionItemsEnd[d[c]-1]=d[0]}}}};a.fn.zuperSlider=function(a){var b=arguments;return this.each(function(){if(c[a]){return c[a].apply(this,Array.prototype.slice.call(b,1))}else if(typeof a==="object"||!a){return c.init.apply(this,b)}else{alert("Method "+a+" does not exist on jQuery.zuperSlider")}})}})(jQuery)